package com.jumi.microservice.config;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

/**
 *
 */

@Configuration
@RefreshScope
public class TimeConfiguration {

    /**
     * 等待支付时间
     */
    @Value("${minutes.failPayMinutes}")
    private String failPayMinutes;

    /**
     * 未支付发送通知时间
     */
    @Value("${minutes.waitPaySendMessageMinutes}")
    private String waitPaySendMessageMinutes;

    /**
     * 确认收货时间天数
     */
    @Value("${minutes.confirmTimeMinutes}")
    private String confirmTimeMinutes;

    /**
     * 确认收货后用户服务结算天数
     */
    @Value("${minutes.settlementMinutes}")
    private String settlementMinutes;

    /**
     * 确认收货后售后期天数
     */
    @Value("${minutes.afterSaleMinutes}")
    private String afterSaleMinutes;

    public String getFailPayMinutes() {
        return failPayMinutes;
    }

    public void setFailPayMinutes(String failPayMinutes) {
        this.failPayMinutes = failPayMinutes;
    }

    public String getWaitPaySendMessageMinutes() {
        return waitPaySendMessageMinutes;
    }

    public void setWaitPaySendMessageMinutes(String waitPaySendMessageMinutes) {
        this.waitPaySendMessageMinutes = waitPaySendMessageMinutes;
    }

    public String getConfirmTimeMinutes() {
        return confirmTimeMinutes;
    }

    public void setConfirmTimeMinutes(String confirmTimeMinutes) {
        this.confirmTimeMinutes = confirmTimeMinutes;
    }

    public String getSettlementMinutes() {
        return settlementMinutes;
    }

    public void setSettlementMinutes(String settlementMinutes) {
        this.settlementMinutes = settlementMinutes;
    }

    public String getAfterSaleMinutes() {
        return afterSaleMinutes;
    }

    public void setAfterSaleMinutes(String afterSaleMinutes) {
        this.afterSaleMinutes = afterSaleMinutes;
    }
}
